#ifndef __M_UTILS_IMAGE_H__
#define __M_UTILS_IMAGE_H__

#include <stdint.h>

void ConvertXRGB8888ToABGR8888(uint32_t *dst, unsigned int dst_w, unsigned int dst_h, unsigned int dst_pitch,
                               uint32_t *src, unsigned int src_w, unsigned int src_h, unsigned int src_pitch,
                               int rotate_cw);
void ConvertRGB565ToABGR8888(uint32_t *dst, unsigned int dst_w, unsigned int dst_h, unsigned int dst_pitch,
                             uint16_t *src, unsigned int src_w, unsigned int src_h, unsigned int src_pitch,
                             int rotate_cw);
void ConvertXRGB1555ToABGR8888(uint32_t *dst, unsigned int dst_w, unsigned int dst_h, unsigned int dst_pitch,
                               uint16_t *src, unsigned int src_w, unsigned int src_h, unsigned int src_pitch,
                               int rotate_cw);

void ConvertImageToABGR8888(void *dst, unsigned int dst_w, unsigned int dst_h, unsigned int dst_pitch,
                            void *src, unsigned int src_w, unsigned int src_h, unsigned int src_pitch,
                            int src_format, int rotate_cw);

#endif
